//
//  DDQuestionAnswerList.h
//  dingdang
//
//  Created by 阮 沧晖 on 15/7/26.
//  Copyright (c) 2015年 阮 沧晖. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DDQuestionAnswerReply.h"


/*{
 createTime = 1441029506000;
 id = 43;
 text = 123123;
 title = "<null>";
 type = TEXT;
 uid = "<null>";
 url = "<null>";
 x = 120;
 y = 125;
 }
 */
@protocol DDQuestionAnswerLabelInfo <NSObject>
@end
@interface DDQuestionAnswerLabelInfo : JSONModel
@property(nonatomic,strong)NSString<Optional> *x;
@property(nonatomic,strong)NSString<Optional> *id;
@property(nonatomic,strong)NSString<Optional> *uid;
@property(nonatomic,strong)NSString<Optional> *type;
@property(nonatomic,strong)NSString<Optional> *y;
@property(nonatomic,strong)NSString<Optional> *title;
@property(nonatomic,strong)NSString<Optional> *text;
@property(nonatomic,strong)NSString<Optional> *url;
@property(nonatomic,strong)NSString<Optional> *createTime;
@end



@protocol DDQuestionAnswerExplanation <NSObject>
@end
@interface DDQuestionAnswerExplanation : JSONModel
@property(nonatomic,strong)NSString<Optional> *desc;
@property(nonatomic,strong)NSString<Optional> *id;
@property(nonatomic,strong)NSArray<Optional,DDQuestionAnswerLabelInfo> *labels;
@property(nonatomic,strong)NSString<Optional> *text;
@property(nonatomic,strong)NSString<Optional> *title;
@property(nonatomic,strong)NSString<Optional> *type;
@property(nonatomic,strong)NSString<Optional> *url;
@end


@protocol DDQuestionAnswerQuestionOptionsContent <NSObject>
@end
@interface DDQuestionAnswerQuestionOptionsContent : JSONModel
@property(nonatomic,strong)NSString *desc;
@property(nonatomic,strong)NSString *id;
@property(nonatomic,strong)NSString *labels;
@property(nonatomic,strong)NSString *text;
@property(nonatomic,strong)NSString *title;
@property(nonatomic,strong)NSString *type;
@property(nonatomic,strong)NSString *url;
@end

@protocol DDQuestionAnswerQuestionOptions <NSObject>
@end
@interface DDQuestionAnswerQuestionOptions : JSONModel
@property(nonatomic,strong)NSArray<DDQuestionAnswerQuestionOptionsContent,Optional> *content;
@property(nonatomic,strong)NSString<Optional> *currect;
@property(nonatomic,strong)NSString<Optional> *id;
@property(nonatomic,strong)NSString<Optional> *label;
//@property(nonatomic,strong)NSString<Optional> *orderIndex;
//@property(nonatomic,strong)NSString<Optional> *score;
//@property(nonatomic,strong)NSString<Optional> *seconds;
//@property(nonatomic,strong)NSString<Optional> *subjective;
//@property(nonatomic,strong)NSString<Optional> *tip;
//@property(nonatomic,strong)NSString<Optional> *type;
//@property(nonatomic,strong)NSString<Optional> *typeName;
//@property(nonatomic,strong)NSString<Optional> *uid;
@end

@protocol DDQuestionAnswerBody <NSObject>
@end
@interface DDQuestionAnswerBody : JSONModel
@property(nonatomic,strong)NSString<Optional> *desc;
@property(nonatomic,strong)NSString<Optional> *id;
@property(nonatomic,strong)NSArray<DDQuestionAnswerLabelInfo,Optional> *labels;
@property(nonatomic,strong)NSString<Optional> *text;
@property(nonatomic,strong)NSString<Optional> *title;
@property(nonatomic,strong)NSString<Optional> *type;
@property(nonatomic,strong)NSString<Optional> *url;
@end

@protocol DDQuestionAnswerQuestion <NSObject>
@end
@interface DDQuestionAnswerQuestion : JSONModel
@property(nonatomic,strong)NSString<Optional> *answer;
@property(nonatomic,strong)NSString<Optional> *arrangment;
@property(nonatomic,strong)NSArray<DDQuestionAnswerBody,Optional> *body;
@property(nonatomic,strong)NSString<Optional> *course;
@property(nonatomic,strong)NSString<Optional> *courseName;
@property(nonatomic,strong)NSString<Optional> *createTime;
@property(nonatomic,strong)NSString<Optional> *emptyOption;
@property(nonatomic,strong)NSArray<DDQuestionAnswerExplanation,Optional> *explanation;
@property(nonatomic,strong)NSString<Optional> *id;
@property(nonatomic,strong)DDQuestionAnswerQuestionOptions<Optional> *options;
@property(nonatomic,strong)NSString<Optional> * type;
@property(nonatomic,strong)NSString<Optional> *score;
@property(nonatomic,strong)NSString<Optional> * typeName;
@property(nonatomic,strong)NSString<Optional> * orderIndex;
@end

@protocol DDQuestionAnswerListCell <NSObject>@end
@interface DDQuestionAnswerListCell : JSONModel
@property(nonatomic,strong)NSString<Optional> *adopted;
@property(nonatomic,strong)NSString<Optional> *answer;
@property(nonatomic,strong)NSString<Optional> *answerTime;
@property(nonatomic,strong)NSString<Optional> *parentQname;
////开始时间
//@property(nonatomic,strong)NSString<Optional> *startTime;

@property(nonatomic,strong)NSString<Optional> *costSeconds;
@property(nonatomic,strong)NSArray<DDQuestionAnswerExplanation,Optional> *explanation;
@property(nonatomic,strong)NSString<Optional> *id;
@property(nonatomic,strong)DDQuestionAnswerQuestion<Optional> *question;
@property(nonatomic,strong)NSString<Optional> *result;
@property(nonatomic,strong)NSString<Optional> *score;
@property(nonatomic,strong)NSString<Optional> *uid;
@property(nonatomic,strong)NSString<Optional> *userAvatarUrl;
@property(nonatomic,strong)NSString<Optional> *userName;
@property(nonatomic,strong)NSString<Optional> *nickName;
@property(nonatomic,strong)NSNumber<Optional> * info_isShowList;
@property(nonatomic,strong)DDQuestionAnswerReply<Optional> * info_exFollowAsk;
@end

@interface DDQuestionAnswerList : JSONModel

@property(nonatomic,strong)NSMutableArray<Optional,DDQuestionAnswerListCell> *list;
@property(nonatomic,strong)NSString<Optional> * total;
@end
